<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="icms.ORM.PhotoPanel" %>
<%@ page import="icms.service.PhotoPanelService" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>deleteMessagePanel</title>
</head>
<body>
<%
//获取栏目id
String idString=request.getParameter("id");
int id;
try{
	id=Integer.parseInt(idString);
}catch(Exception e){
	id=-1;
}
//实例化服务类对象
PhotoPanelService service=new PhotoPanelService();
service.deletePhoto(service.getPhotoByID(id));
%>
<script type="text/javascript">
window.self.location="photoPanelMan.jsp"
</script>
</body>
</html>